package info.opensoaring.server.jdo;

import info.opensoaring.api.igc.Fix;

import java.util.List;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@EmbeddedOnly
@PersistenceCapable
public class FlightOptimization {

    @Persistent
    private String optimizerId;

    @Persistent
    private List<Fix> fixes;

    public FlightOptimization(String optimizerId, List<Fix> fixes) {
	this.optimizerId = optimizerId;
	this.fixes = fixes;
    }

    public String getOptimizerId() {
	return optimizerId;
    }

    public void setOptimizerId(String optimizerId) {
	this.optimizerId = optimizerId;
    }

    public List<Fix> getFixes() {
	return fixes;
    }

    public void setFixes(List<Fix> fixes) {
	this.fixes = fixes;
    }

}
